package lab1;

import java.util.ArrayList;
import java.util.List;

public class ObjectStructure {
	private List<Customer> customerList = new ArrayList<>();
	
	public void add(Customer c) {
		customerList.add(c);
	}

	public void remove(Customer c) {
		customerList.remove(c);
	}
	
	public void accept(VisitorInterface v) {
		for (Customer c:customerList) {
			c.accept(v);
		}
	}


}
